package com.ruoyi.basebill.service;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import com.ruoyi.basebill.domain.OmsPurinwarehsbill;

/**
 * 采购入库单Service接口
 * 
 * @author wenyixiong
 * @date 2023-02-15
 */
public interface IOmsPurinwarehsbillService 
{
    /**
     * 查询采购入库单
     * 
     * @param id 采购入库单主键
     * @return 采购入库单
     */
    public OmsPurinwarehsbill selectOmsPurinwarehsbillById(Long id);

    public List<OmsPurinwarehsbill> selectOmsPurinwarehsbillByIds(HashSet<Long> ids);

    /**
     * 查询采购入库单列表
     * 
     * @param omsPurinwarehsbill 采购入库单
     * @return 采购入库单集合
     */
    public List<OmsPurinwarehsbill> selectOmsPurinwarehsbillList(OmsPurinwarehsbill omsPurinwarehsbill);


    public List<OmsPurinwarehsbill> selectOmsPurinwarehsbillDetailList(OmsPurinwarehsbill omsPurinwarehsbill);

    /**
     * 新增采购入库单
     * 
     * @param omsPurinwarehsbill 采购入库单
     * @return 结果
     */
    public int insertOmsPurinwarehsbill(OmsPurinwarehsbill omsPurinwarehsbill);

    /**
     * 修改采购入库单
     * 
     * @param omsPurinwarehsbill 采购入库单
     * @return 结果
     */
    public int updateOmsPurinwarehsbill(OmsPurinwarehsbill omsPurinwarehsbill);

    /**
     * 批量删除采购入库单
     * 
     * @param ids 需要删除的采购入库单主键集合
     * @return 结果
     */
    public int deleteOmsPurinwarehsbillByIds(Long[] ids);

    /**
     * 删除采购入库单信息
     * 
     * @param id 采购入库单主键
     * @return 结果
     */
    public int deleteOmsPurinwarehsbillById(Long id);

    public List<OmsPurinwarehsbill> selectSumBillNumberIsNull();


    int updateSumBillNumberByIds(String billNumber, ArrayList<Long> ids);
}
